package com.zzyl.service;

import com.zzyl.base.PageBean;
import com.zzyl.dto.ReservationDto;
import com.zzyl.dto.ReservationQueryDto;
import com.zzyl.vo.ReservationVo;
import com.zzyl.vo.TimeCountVo;

import java.util.List;

public interface ReservationService {

    /**
     * 分页查找预约信息
     */
    PageBean<ReservationVo> findByPage(ReservationQueryDto dto);

    Integer getNum();

    List<TimeCountVo> getCount(Long time);

    void addReservation(ReservationDto dto);

    void cancelReservation(Long id);
}
